home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / DOSTIPS6.ZIP / DOS4MAT next >
Text File  |  1987-03-03  |  4KB  |  102 lines

  1.                         Playing With Fire
  2.        (PC Magazine Vol 6 No 3 Feb 10, 1987 User-to-User)
  3.  
  4.      If you've installed third-party hard disks driven by Western
  5. Digital controller cards (ROM Version 6.0 or earlier) and either wish
  6. to experiment or did not receive adequate instructions on how to low-
  7. level-format your hard disk, it's easy to do so.
  8.      The following procedures will also let you change the drive
  9. designation and the interleave if you so desire.  (Make sure this is
  10. what you want!)
  11.      First, load DEBUG and at the "-" prompt enter:
  12.  
  13. RAX
  14.  
  15. When DEBUG responds with a ":" enter the drive designation and the
  16. interleave you want.  For example, for a hard disk designated as drive
  17. D: with an interleave factor of 4 you would enter:
  18.  
  19. 0104
  20.  
  21. since drives are designated 0 through 7 with drive C: equal to 0.
  22. (The relative drive number goes into register AH, and the interleave
  23. factor into AL.)  Then at the DEBUG prompt enter:
  24.  
  25. G=C800:5
  26.  
  27. Answer "Y" to the question on-screen if you wish to begin low-level
  28. formatting.  Finally, use FDISK and FORMAT to complete the setup of
  29. yoru newly configured drive.  Remember, this will erase all information
  30. already on your hard disk.
  31.      Editor's Note:  The only time to try this is when you're first
  32. installing a hard disk or when you're absolutely currently backed up.
  33. If you do experiment, make sure you note the default settings so you
  34. can reset everything to normal when you're done.  You obviously will
  35. know what the original drive number is, and the low-level formatter
  36. should print out the interleave factor in its prompt.  And, this won't
  37. work on all systems.
  38.  
  39. -----------------------------------------------------------------
  40.                       Format on the Double
  41.                (PC World March 1987 Star-Dot-Star)
  42.  
  43.      To speed up the time-consuming process of formatting many floppy
  44. disks, use the batch file FORMATAB.BAT so you can change the disks in
  45. one drive while formatting a disk in the other.
  46.      FORMATAB.BAT relies on a data file called KEYS.DAT to hold the
  47. keystrokes that will be requested by the FORMAT command.  Use the BASIC
  48. program KEYS.BAS to create the KEYS.DAT file.  The first two characters
  49. in KEYS.DAT supply the input to the FORMAT command's requests, while
  50. the CHR$(3) terminates the FORMAT command if the drive is empty.  To
  51. use the batch file, you must have a hard disk or a RAMdisk holding
  52. FORMATAB.BAT, DOS's FORMAT.COM file, and KEYS.DAT.
  53.      When you are typing FORMATAB.BAT, you can generate the Ctrl-G
  54. character (the bell) by holding down the <Alt> key and pressing 7 on
  55. the numeric keypad.  Ctrl-G rings the PC's bell when it's time to
  56. change disks.  To halt execution of FORMATAB.BAT, simply leave a disk
  57. drive door open.  When the "Not ready error reading drive n, Abort,
  58. Retry, Ignore?" message appears, press Ctrl-Break.  When you are asked
  59. if you want to terminate the batch file, press Y, and the DOS prompt
  60. will appear.
  61.  
  62. KEYS.BAS:
  63.  
  64. 100 OPEN "C:KEYS.DAT" FOR OUTPUT AS #1
  65. 110 PRINT #1,CHR$(13);"n";CHR$(13);CHR$(3)
  66. 120 CLOSE #1
  67. 130 END
  68.  
  69.  
  70. FORMATAB.BAT:
  71.  
  72. echo off
  73. cls
  74. echo ************************************************************
  75. echo *  Place the first diskette to be FORMATted into drive A:  *
  76. echo ************************************************************
  77. pause
  78. cls
  79. :loop
  80. echo
  81. echo
  82. echo
  83. echo
  84. echo *********************************************************
  85. echo *  Place the next diskette to be FORMATted in drive B:  *
  86. echo *********************************************************
  87. echo ^G
  88. format a: < c:keys.dat > nul
  89. vol a: > nul
  90. echo
  91. echo
  92. echo
  93. echo
  94. echo **********************************************************
  95. echo *  Place the next disketter to be FORMATted in drive A:  *
  96. echo **********************************************************
  97. echo ^G
  98. format b: < c:keys.dat > nul
  99. vol b: > nul
  100. goto loop
  101.  
  102.